package com.example.picturestorage.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author 28116
 */
@Configuration
public class MyConfigurations {

    @Bean
    public ExecutorService getCachedThreadPool(){
        return Executors.newCachedThreadPool();
    }
}
